// 浏览器自带的 fetch api
fetch('/api/hello')
  .then(res => res.text())
  .then(result => {
    console.log(result);
  });
